package itheima_Integer;

public class Sort01 {
    public static void main(String[] args) {


        int  res =getsum(20000);
        System.out.println(res);
    }

    private static int getsum(int i) {

        if(i == 1){
            return 1;
        }else{
            return i+getsum(i-1);
        }
    }
}
